package com.sinosoft.perfect.system._authorization.service;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._.po.TUserRolesysRelation;

public interface IUserRolesysAuthorizeService {

	public List<TUserRolesysRelation> queryRolesystemsOfUser(String userId) throws SQLException;

	public boolean delAllRolesOfUserAndAddUserRoles(String userId, String chooseRoleSystemsString);

	public boolean delAllRoleUsersOfUnitAndAddUsersRoleOfUnit(String unitId, String chooseRoleSystemsString);
	
	/**
	 * 将多个用户同时插入到系统角色中。(fys 11/07/14)
	 * @param addUserIds 所有需要插入用户的userId，用','隔开
	 * @param delUserIds 所有需要删除用户的userId，用','隔开
	 * @param roleSystemId 用户指定的系统角色Id
	 * @throws SQLException
	 */
	public boolean deleteAndinsertAllUsersInOneRoleSystem(String addUserIds,String delUserIds, String roleSystemId) throws SQLException;
}
